import { IsInt, IsNotEmpty, IsString, Min } from "class-validator";

/**
 * 创建猫咪 DTO
 */
export class CreateCatDto {
  @IsString()
  @IsNotEmpty()
  name: string;

  @IsInt()
  @Min(0)
  age: number;

  @IsString()
  @IsNotEmpty()
  breed: string;
}
